home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / DAYLAST.HDR < prev    next >
Text File  |  1994-04-25  |  1KB  |  42 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _DayLast( dDate ) --> nDay
  8.  
  9. PARAMETERS:
  10.  
  11. dDate : Date from which last day of the month is to be derived.
  12.  
  13. SHORT:
  14.  
  15. Determine the date of the last day of the month, with respect for leap years.
  16.  
  17. DESCRIPTION:
  18.  
  19. _DayLast() returns the date of the last day of the month of dDate in the same
  20. way that _DayFirst( returns the first day of the month.  It also properly
  21. returns "02/29/yy" on leap years.
  22.  
  23. NOTE:
  24.  
  25.  
  26.  
  27. EXAMPLE:
  28.  
  29. Look carefully at the logical condition test of "t" in the following
  30. examples:
  31.  
  32. t = _DayLast( ctod('03/22/93') )
  33. Result: (t == ctod('03/31/93') ) = TRUE
  34.  
  35. t = _DayLast( ctod('02/22/93') )
  36. Result: (t == ctod('02/28/93') ) = TRUE
  37.  
  38. t = _DayLast( ctod('02/22/92') )
  39. Result: (t == ctod('02/29/92') ) = TRUE
  40.  
  41. ******************************************************************************/
  42.